import login from './login';

/**
 * 微博登录
 * @param url 当前项目对应的spaceid
 * @param token 根据code获取到的token
 * @param logintype 网站应用：sina_pc  移动应用：sina_phone
 * @param screenname 需要查询的用户昵称
 * @example sina_login_screenname(code,screenname);
 */
export default function sina_login_screenname(code: string, screenname: string) {
	return login('sina-login-screenname', {
		code,
		screenname
	}) as Promise<{
		_id: string;
		usercode: string;
		user_name: string;
		name_spell: string;
		is_disabled: boolean;
		create_time: number;
		productid: string;
		avatar_path: string;
		avatar_name: string;
		avatar_type: string;
		email: string;
		phone: string;
		last_login_time: number;
		phone_verified: boolean;
		email_verified: boolean;
		is_admin: string;
		code: number;
		msg: string;
		sessionID: string;
	}>;
}
